export default {
  props: ['menuData', 'firstTab'],
  data() {
    return {
      currentTab: this.firstTab
    }
  },
  computed: {
    tabs() {
      return Object.keys(this.menuData)
    }
  },
  handleMenuLeftClick(tab) {
    this.currentTab = tab
  },
  onReady() {
    // console.log(JSON.stringify(this.tabs))
    this.$watch('firstTab', (newValue) => {
      this.currentTab = newValue
    })
  }
}